package project.reminder;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.DatePicker;
import android.widget.Toast;


public class Project2reminderActivity extends Activity {
    /** Called when the activity is first created. */
	
	private DatePicker picker;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        picker = (DatePicker) findViewById(R.id.datePicker1);
        
    }
    
    public void onDateSelectedButtonClick(View v){
        int day = picker.getDayOfMonth();
        int month = picker.getMonth();
        int year = picker.getYear();
        
         
        Toast.makeText(this, day+"/"+month+"/"+year, Toast.LENGTH_SHORT).show();
    }
    
}